package com.mmm;


import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableDiscoveryClient
@SpringBootApplication
public class LoadBanlancedServer1 {
    //spring boot 基础业务接口，通过以下链接访问
    // http://localhost:2001/addtest?a=1&b=2
	// 注意做负载均衡，配置文件里 spring.application.name=LoadBalancedServer 要写一样
	// 如果做多服务中心，配置文件里要指定多个，eureka.client.serviceUrl.defaultZone = http://localhost:1112/eureka/,http://localhost:3112/eureka/

	public static void main(String[] args) {
		new SpringApplicationBuilder(LoadBanlancedServer1.class).web(true).run(args);
	}


}
